set(CMAKE_PREFIX_PATH /home/xqyr/lib/arm-qt-qt15)
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR arm)

message("CMAKE_C_COMPILER /usr/local/arm/gcc-linaro-5.5.0-2017.10-i686_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc")
# 编译器设置
set(CMAKE_C_COMPILER /usr/local/arm/gcc-linaro-5.5.0-2017.10-i686_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc)
set(CMAKE_CXX_COMPILER /usr/local/arm/gcc-linaro-5.5.0-2017.10-i686_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++)

# Qt 路径
set(Qt5_DIR /home/xqyr/lib/arm-qt-qt15/lib/cmake/Qt5)

# Sysroot（可选）
# set(CMAKE_SYSROOT /path/to/sysroot)
# set(CMAKE_FIND_ROOT_PATH ${CMAKE_SYSROOT})

# 搜索规则
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
